/*Copyright (c) 2020 Orca Data Technology(Xi'an)CO.LTD. All rights reserved. * Create by Jisr on 2022/5/17 3:29 PM*/

export const ProjectAPI = {
    addProject: (params: {projectName: string}) => {
        return window.db.onPush('project', {name: params.projectName});
    },
    getProject: () => {
        return window.db.onPull('project');
    },
    deleteProject: (id: number) => {
        return window.db.onDelete('project', id);
    }
};
